<template>
  <div>
    <el-button
      type="primary"
      icon="el-icon-jk-kuaijiejiancha"
      @click="oneDayCheck"
    >
      一键巡检
    </el-button>
  </div>
</template>

<script>
import { getUserData } from "@/utils/IndexedDB.js";

export default {
  watch: {},
  data() {
    return {};
  },
  created() {},
  methods: {
    oneDayCheck() {
      this.$routes.push("/examine/TodayExamineDataBase");
      
      // getUserData("userBase", "infoBase", 0).then((res) => {
        

      //   switch (res.ms_type) {
      //     case "superAdmin":
      //     case "bigUser":
      //     case "bigadmin":
      //     case "Buser":
      //     case "Badmin":
      //     case "BSuser":
      //     case "BSadmin":
      //     case "BNuser":
      //     case "BNadmin":
      //       console.log(110)
      //        this.$routes.push("/examine/TodayExamineDataBase");
      //       break;

      //     case "Suser":
      //     case "Sadmin":
      //     case "SNuser":
      //     case "SNadmin":
      //        this.$routes.push("/examine/TodayExamineServer");
      //       break;
      //   }
      // });
    },
  },
};
</script>

<style scoped>
</style>
